		<?php
								
								$content_menu=new content_data();
								$menu = $content_menu->generate_content_menu();
							
								?>
								
								<?php
								
								foreach($menu as $x)
								{
									
									$category_serial=unserialize($x['serial']);
								
									if($x['category_menu']==0){
										$content_menu_content=new content_data();
										$content_menu_content->content_category=$x['category_id'];
										$submenu = $content_menu_content->generate_content_menu_content();
										$me=current($submenu);
										$unserial=unserialize($me['content_serial']);
										////rp($unserial);
														if(!empty($unserial['serial_special_page']))
															{
																$page=$unserial['serial_special_page'];
															}
														else
															{
																$page='content.php';
															}
															//echo $conf->photo_dir;
										$menu_image=f_path($category_serial['serial_lat'],$conf->photo_dir);
										//	echo $category_serial['serial_lat'];
									//	echo $menu_image;
										//echo $unserial['serial_lat'];
										?>
									
									<li>
										<a href='<?PHP echo $page;?>?q=category/<?php echo convert_string_to_query($x['category_name']);?>'>
								
										<img src="	<?php echo $menu_image;?>	">
										</a>
										
									</li>
								
									<?php
								}//end if
									
							}//end foreach
								
								?>
								